package application

import (
	"ruoyi-go-echo-ddd/internal/domain/service"

	"github.com/labstack/echo/v4"
)

type PermissionApplication struct {
	service *service.PermissionService
}

func NewPermissionApplication(s *service.PermissionService) *PermissionApplication {
	return &PermissionApplication{
		service: s,
	}
}

func (s *PermissionApplication) SelectRolePermission(e echo.Context, userId int64) ([]string, error) {
	return s.service.SelectRolePermission(e, userId)
}

func (s *PermissionApplication) SelectMenuPermission(e echo.Context, userId int64) ([]string, error) {
	return s.service.SelectMenuPermission(e, userId)
}
